package org.cxfexample.jaxb.service;

import org.apache.log4j.Logger;
import org.cxfexample.jaxb.model.SimpleTestRequest;
import org.cxfexample.jaxb.model.SimpleTestResponse;


public class JAXBExampleServiceImpl implements JAXBExampleService {
	
	private static Logger logger = Logger.getLogger(JAXBExampleServiceImpl.class);

	public SimpleTestResponse JAXBSimpleTest(SimpleTestRequest request) {
		
		logger.info("invoke JAXBSimpleTest");
		logger.info("request's price:"+request.getPrice());
		logger.info("request's option:"+request.getOption());
		
		
		SimpleTestResponse response = new SimpleTestResponse();
		response.setPrice("request's price is "+request.getPrice());
		
		return response;
	}
}
